<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet" type="text/css" href="/css/jquery.pagination.css" />
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/bootstrap.js"></script>
    <script type="text/javascript" src="/js/ckform.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <script type="text/javascript" src="/js/jquery.pagination.min.js"></script>
<!--    <script>-->
<!--        $(function() {-->
<!--            var cp=parseInt($("#curPage").val());-->
<!--            var tp=parseInt($("#tolPage").val());-->
<!--            $("#pagination2").pagination({-->
<!--                currentPage:cp,-->
<!--                totalPage:tp,-->
<!--                isShow: false,-->
<!--                count: 5,-->
<!--                prevPageText: "< 上一页",-->
<!--                nextPageText: "下一页 >",-->
<!--                callback: function(current) {-->
<!--                    location.href='/book/list/'+current;-->
<!--                }-->
<!--            });-->
<!--        });-->
<!--    </script>-->
</head>
<body>
<form id="form" class="form-inline definewidth m20"
      action="/findByAccount" method="post">
    用户查询： <input type="text" name="account" id="account"
                 class="abc input-default" placeholder="请输入用户账号">&nbsp;&nbsp;
    <button type="submit" class="btn btn-primary">查询</button>
    <a type="button" class="btn btn-primary" th:href="'/addPeoplePage'">添加用户</a>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>序号</th>
        <th>账名</th>
        <th>密码</th>
        <th>用户名</th>
        <th>所属球队</th>
<!--        <th>喜欢球队</th>-->
<!--        <th>喜欢球星</th>-->

    </tr>
    </thead>
    <tr th:each="list:${list}">
        <td th:text="${list.id}"></td>
        <td th:text="${list.account}"></td>
        <td th:text="${list.password}"></td>
        <td th:text="${list.name}"></td>
        <td th:text="${list.byteam}"></td>
<!--        <td th:text="${list.liketeam}"></td>-->
<!--        <td th:text="${list.likestar}"></td>-->
        <td><a type="button" class="btn btn-success" th:href="'/removeByPeopleid?id='+${list.id}">删除</a>
            <a type="button" class="btn btn-success" th:href="'/findById?id='+${list.id}">修改</a>
        </td>
    </tr>
</table>
<!--<input th:value="${page.currentPage}" type="hidden" id="curPage"/>-->
<!--<input th:value="${page.totalPage}" type="hidden" id="tolPage"/>-->
<center>
    <div class="box">
        <div id="pagination2" class="page fl"></div>
    </div>
</center>
</body>

</html>